home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Library / Manuels & Misc / Assembly / AOA.ZIP / CH06 / EX6_4.IBM < prev    next >
Encoding:
Text File  |  1996-02-04  |  453 b   |  29 lines

  1. #data
  2.  
  3. ; The following code tests the time difference between loading ES:BX
  4. ; from a memory variable and ES:BX with a constant.
  5.  
  6. ESBXVar        dd    ESBXVar
  7.  
  8. #enddata
  9.  
  10. #repetitions 480000
  11. #unravel 256
  12.  
  13. #code ("LES BX, ESBXVar")
  14. %do
  15.         les    bx, ESBXVar
  16. #endcode
  17.  
  18. #code ("LESI ESBXVar")
  19. %init
  20. ;     This is the code which does the following:
  21. ;        mov    bx, seg ESBXVar
  22. ;        mov    es, bx
  23. ;        mov    bx, offset ESBXVar
  24.  
  25. %do
  26.         lesi    ESBXVar
  27. #endcode
  28. #end
  29.